package com.example.demo4.repository;

import com.example.demo4.domain.Teacher;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;
import java.util.List;

public interface TeacherRepository extends JpaRepository<Teacher,Integer> {
    List<Teacher> findByTnameLike(String tname);
    Teacher findByTno(String tno);
    @Modifying
    @Transactional

    void deleteByTno(String tno);


}
